package com.itheima.count.controller;

import com.itheima.domain.Student;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;

public interface ICountController {
    Scanner scanner = new Scanner(System.in);

    //获得报表
    void getReprot() throws IOException, ClassNotFoundException;
    //统计男
    int getMan(ArrayList<Student> list);
    //统计女
    int getGirl(ArrayList<Student> list);
    //统计各年龄段的人数18,19,20
    int  getAge(ArrayList<Student> list);
    int getAgeBoy(ArrayList<Student> list);
    //统计总人数
    int getAll(ArrayList<Student> list);
    //统计平均年龄
    HashMap<Integer,Integer> getAvgage(ArrayList<Student> list);

    //统计每个手机号有俩6
    int getPhone(ArrayList<Student> list);
    //统计有各个姓的人数
    HashMap<String, Integer>  getxing(ArrayList<Student> list);
}
